package com.ellricky.baselib.ui.order

import com.andr.common.ui.adapter.BaseRecyclerAdapter
import com.andr.common.ui.adapter.SmartViewHolder
import com.ellricky.baselib.R
import com.ellricky.baselib.entity.IntegralInfo

class IntegralAdapter :
    BaseRecyclerAdapter<IntegralInfo>(R.layout.base_adapter_integral) {
    override fun onBindViewHolder(holder: SmartViewHolder, data: IntegralInfo, p2: Int) {
        holder.text(R.id.tv_integral_name, data.name)
            .text(R.id.tv_integral_time, data.time)
            .text(R.id.tv_integral_number, data.num.toString())
    }
}